package com.ignoreexception.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author:ZhangShuPeng
 * @Date:2022/12/26/21:49
 * @Description:
 */
@RestController
public class HelloController {

    @RequestMapping("hello/{username}")
    public String hello(@PathVariable("username") String username) {
        String result = "hello" + username;
        System.out.println(result);
        return result;

    }
}
